const Router = require('koa-router')
const router = new Router({prefix: '/chat'})

const { auth } = require('../middleware/jwt')
const chat = require('../controller/chat')

router.get('/test', (ctx, next) => ctx.body = '测试成功！')
router.post('/login', chat.login)
router.post('/register', chat.register)

module.exports = router